import React from 'react';
import { Image, Text, TouchableOpacity, View, TextInput, ImageBackground, Platform } from 'react-native';
import Colors from "../constants/Colors";
import { unitWidth, width } from "../constants/AdapterUtil";
import { show } from '../constants/Toast';

//列表为空时显示
export default class EmptyView extends React.Component {
    render() {
        return (
            <View style={{ width: width, height: 500 * unitWidth, alignItems: 'center', justifyContent: 'center' }}>
                <Image source={{ uri: '' }} style={{ width: 140 * unitWidth, height: 144 * unitWidth }} resizeMode='stretch' />
                <Text>暂无内容</Text>
            </View>
        );
    }
}

//列表为空时显示
export class ExamineView extends React.Component {
    render() {
        return (
            <View style={{ width: width, flex: 1, alignItems: 'center', justifyContent: 'center' }}>
                <Image source={require('../res/me_shbtg.png')} style={{ width: 328 * unitWidth, height: 241 * unitWidth }} resizeMode='stretch' />
                <Text style={{ color: Colors.color66, fontSize: 15 }}>{this.props.reason}</Text>
                {this.props.showRecertification ?
                    <Text style={{ color: Colors.colorOrange, fontSize: 15, borderBottomWidth: 0.5, borderBottomColor: Colors.colorOrange, marginTop: 20 * unitWidth }}
                        onPress={this.props.onPress}>请重新认证</Text>
                    : null}
            </View>
        );
    }
}